home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14776 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  51 lines

  1. Newsgroups: comp.lang.c++
  2. Path: lll-winken.llnl.gov!parc!rocksanne!news
  3. From: Kevin Ehmka <kehmk@roch875.mc.xerox.com>
  4. Subject: Re: BC++5.0 Great! 
  5. Content-Type: text/plain; charset=us-ascii
  6. Message-ID: <316042E9.4950@roch875.mc.xerox.com>
  7. Sender: news@news.wrc.xerox.com
  8. Content-Transfer-Encoding: 7bit
  9. Cc: "William E. Sadler" <William.Sadler@mailport.delta-air.com>
  10. Organization: Xerox-MTC
  11. References: <315BEEBB.1261@mailport.delta-air.com>
  12. Mime-Version: 1.0
  13. Date: Mon, 1 Apr 1996 20:56:09 GMT
  14. X-Mailer: Mozilla 2.0 (WinNT; I)
  15.  
  16. William E. Sadler wrote:
  17. > Try this one folks:
  18. > do the standard hello world:
  19. > main()
  20. > {
  21. >         cout << "Hello, World" << endl;
  22. > }
  23. > This will compile.  Now, include the STL routine for a string, and cout the
  24. > string that contains hello world.  No dice.
  25. > Sad, isn't it.  I sold a 1000 shares of borland yesterday.  Happy!  I
  26. > doubled my money.  But when word abou this buggy compiler gets out in the
  27. > mainstream 'puter press, I betcha they're gonna tumble.
  28. >
  29.  
  30. The output is being buffered. Simply put an endl after the string or call 
  31. cout.flush();
  32.  
  33. > I've loved borland, but they've finally driven me to MSVC.  Sigh...
  34. >
  35.  
  36. Is that really so? 
  37.  
  38.  
  39. much regards,
  40.  
  41. Kevin
  42.  
  43.  
  44. -- 
  45. "The moment more we think we know, the dummer we get."
  46.